import pandas as pd

# 删除df or series 的重复索引
def removeDuplicatedIndex(pdObject):
    return pdObject[~pdObject.index.duplicated()]  # 删除重复索引